/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Pantallasos;

/**
 *
 * @author Eduardo
 */
public class PantallaPrincipalSecretaria extends javax.swing.JFrame {

    Logueo logueo;
    
    RatificarMatricula ratificarMatricula;
    ConsultarCapacidadAulas consultarCapacidadAulas;
    RegistrarPostulante registrarPostulante;
    BuscarPostulanteMod buscarPostulanteMod;
    BuscarPostulanteElim buscarPostulanteElim;
    BuscarPostulanteExamen buscarPostulanteExamen;
    BuscarPostulanteResult buscarPostulanteResult;
    ConfigImprimirBoleta configImprimirBoleta;
    ConfigImprimirConstancia configImprimirConstancia;
    RegistrarMensualidad registrarMensualidad;
    
    public PantallaPrincipalSecretaria() {
        initComponents();
        this.setVisible(true);
    }

    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();
        jMenu6 = new javax.swing.JMenu();
        jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator2 = new javax.swing.JSeparator();
        botonRatificar = new javax.swing.JButton();
        botonVacantes = new javax.swing.JButton();
        botonCerrarSesion = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        menuArchivo = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();
        imprimirBoleta = new javax.swing.JMenuItem();
        imprimirConstancia = new javax.swing.JMenuItem();
        menuGestion = new javax.swing.JMenu();
        gestionMensualidad = new javax.swing.JMenuItem();
        menuMatricula = new javax.swing.JMenu();
        jMenu1 = new javax.swing.JMenu();
        nuevoPostulante = new javax.swing.JMenuItem();
        modPostulante = new javax.swing.JMenuItem();
        eliminaPostulante = new javax.swing.JMenuItem();
        matriculaExamenes = new javax.swing.JMenuItem();
        matriculaResultados = new javax.swing.JMenuItem();

        jMenu4.setText("File");
        jMenuBar2.add(jMenu4);

        jMenu5.setText("Edit");
        jMenuBar2.add(jMenu5);

        jMenu6.setText("jMenu6");

        jCheckBoxMenuItem1.setSelected(true);
        jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("TALENTOS - PERFIL: SECRETARIA");
        setResizable(false);

        botonRatificar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/diploma.png"))); // NOI18N
        botonRatificar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonRatificarActionPerformed(evt);
            }
        });

        botonVacantes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/vacantes.png"))); // NOI18N
        botonVacantes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonVacantesActionPerformed(evt);
            }
        });

        botonCerrarSesion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/X.png"))); // NOI18N
        botonCerrarSesion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botonCerrarSesionActionPerformed(evt);
            }
        });

        menuArchivo.setText("Archivo");

        jMenu2.setText("Imprimir");

        imprimirBoleta.setText("Boleta de pago");
        imprimirBoleta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                imprimirBoletaActionPerformed(evt);
            }
        });
        jMenu2.add(imprimirBoleta);

        imprimirConstancia.setText("Constancia de matricula");
        imprimirConstancia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                imprimirConstanciaActionPerformed(evt);
            }
        });
        jMenu2.add(imprimirConstancia);

        menuArchivo.add(jMenu2);

        jMenuBar1.add(menuArchivo);

        menuGestion.setText("Gestion");

        gestionMensualidad.setText("Fijar mensualidad");
        gestionMensualidad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                gestionMensualidadActionPerformed(evt);
            }
        });
        menuGestion.add(gestionMensualidad);

        jMenuBar1.add(menuGestion);

        menuMatricula.setText("Matricula");

        jMenu1.setText("Postulante");

        nuevoPostulante.setText("Registrar");
        nuevoPostulante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nuevoPostulanteActionPerformed(evt);
            }
        });
        jMenu1.add(nuevoPostulante);

        modPostulante.setText("Modificar");
        modPostulante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modPostulanteActionPerformed(evt);
            }
        });
        jMenu1.add(modPostulante);

        eliminaPostulante.setText("Eliminar");
        eliminaPostulante.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eliminaPostulanteActionPerformed(evt);
            }
        });
        jMenu1.add(eliminaPostulante);

        menuMatricula.add(jMenu1);

        matriculaExamenes.setText("Programar examenes");
        matriculaExamenes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                matriculaExamenesActionPerformed(evt);
            }
        });
        menuMatricula.add(matriculaExamenes);

        matriculaResultados.setText("Resultados de examenes");
        matriculaResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                matriculaResultadosActionPerformed(evt);
            }
        });
        menuMatricula.add(matriculaResultados);

        jMenuBar1.add(menuMatricula);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator2)
            .addGroup(layout.createSequentialGroup()
                .addComponent(botonRatificar, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botonVacantes, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(botonCerrarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 412, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(botonVacantes, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addComponent(botonCerrarSesion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(botonRatificar, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(299, Short.MAX_VALUE))
        );

        pack();
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    private void botonRatificarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonRatificarActionPerformed
        ratificarMatricula = new RatificarMatricula();
    }//GEN-LAST:event_botonRatificarActionPerformed

    private void botonVacantesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonVacantesActionPerformed
        consultarCapacidadAulas = new ConsultarCapacidadAulas();
    }//GEN-LAST:event_botonVacantesActionPerformed

    private void botonCerrarSesionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botonCerrarSesionActionPerformed
        this.setVisible(false);
        logueo = new Logueo();
        this.dispose();
    }//GEN-LAST:event_botonCerrarSesionActionPerformed

    private void nuevoPostulanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nuevoPostulanteActionPerformed
        registrarPostulante = new RegistrarPostulante();
    }//GEN-LAST:event_nuevoPostulanteActionPerformed

    private void modPostulanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_modPostulanteActionPerformed
        buscarPostulanteMod = new BuscarPostulanteMod();
    }//GEN-LAST:event_modPostulanteActionPerformed

    private void eliminaPostulanteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_eliminaPostulanteActionPerformed
        buscarPostulanteElim = new BuscarPostulanteElim();
    }//GEN-LAST:event_eliminaPostulanteActionPerformed

    private void matriculaExamenesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_matriculaExamenesActionPerformed
        buscarPostulanteExamen = new BuscarPostulanteExamen();
    }//GEN-LAST:event_matriculaExamenesActionPerformed

    private void matriculaResultadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_matriculaResultadosActionPerformed
        buscarPostulanteResult = new BuscarPostulanteResult();
    }//GEN-LAST:event_matriculaResultadosActionPerformed

    private void imprimirBoletaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_imprimirBoletaActionPerformed
        configImprimirBoleta = new ConfigImprimirBoleta();
    }//GEN-LAST:event_imprimirBoletaActionPerformed

    private void imprimirConstanciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_imprimirConstanciaActionPerformed
        configImprimirConstancia = new ConfigImprimirConstancia();
    }//GEN-LAST:event_imprimirConstanciaActionPerformed

    private void gestionMensualidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_gestionMensualidadActionPerformed
        registrarMensualidad = new RegistrarMensualidad();
    }//GEN-LAST:event_gestionMensualidadActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botonCerrarSesion;
    private javax.swing.JButton botonRatificar;
    private javax.swing.JButton botonVacantes;
    private javax.swing.JMenuItem eliminaPostulante;
    private javax.swing.JMenuItem gestionMensualidad;
    private javax.swing.JMenuItem imprimirBoleta;
    private javax.swing.JMenuItem imprimirConstancia;
    private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JMenuItem matriculaExamenes;
    private javax.swing.JMenuItem matriculaResultados;
    private javax.swing.JMenu menuArchivo;
    private javax.swing.JMenu menuGestion;
    private javax.swing.JMenu menuMatricula;
    private javax.swing.JMenuItem modPostulante;
    private javax.swing.JMenuItem nuevoPostulante;
    // End of variables declaration//GEN-END:variables
}
